// 引入mongoose
import mongoose from 'mongoose'
// 创建集合规则实例对象
const Schema = mongoose.Schema

// 创建集合规则
const citySchema = new Schema({
  id: {
    type: String,
    require: true
  },
  value: {
    type: Array,
    require: true
  }
})

// 创建集合
const City = mongoose.model('City', citySchema)

// 导出集合
export default City
